<template>
	<view class="content">
		<view class="logo" @click="tocomplain">
			<image class="image" :src="imgprefix+'/web/uploads/logo/acomplaint.png?timeout='+timeout" mode="widthFix">
			</image>
		</view>
		<view class="img" v-for="(item,index) in imglist" :key="index">
			<image :src="item.icon_url" mode="widthFix" style="width: 100%;"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imglist: [],
				timeout: new Date().getTime(),
				imgprefix: this.$siteInfo.imgroot
			}
		},
		onLoad() {
			this.allReq()
		},
		methods: {
			tocomplain() {
				uni.navigateTo({
					// url: "/pages/user-center/contactus/contactus?title=有奖投诉"
					url: "/pages/complaint/index"
				})
			},
			allReq() {
				this.$request({
					url: this.$api.navs.list,
					data: {
						pid: 51,
						status: 1
					}
				}).then((res) => {
					this.imglist = res.data.list
				}).catch(() => {

				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		background-color: #FFFFFF;
	}

	.logo {
		width: 100%;
		padding: 24rpx;
		text-align: right;

		.image {
			width: 294rpx;
		}
	}
</style>
